package com.power.sifa.std.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.std.model.Std_comword;
import com.power.sifa.std.model.pageInfo.Std_comwordPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  常用语 Feign
 */
public interface IStd_comwordFeign {

    /**
     * 常用语分页列表
     */
    @GetMapping("/std_comword/queryList")
    ResponseDTO queryList(@RequestParam String content, @RequestParam String createuserid);

    /**
     * 常用语分页列表
     */
    @PostMapping("/std_comword/list")
    ResponseDTO list(@RequestBody Std_comwordPageInfo std_comwordPageInfo);

    /**
    * 查看常用语
    */
    @GetMapping("/std_comword/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除常用语
    */
    @PostMapping("/std_comword/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看常用语 复合主键使用
    // */
    //@PostMapping("/std_comword/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Std_comword.Std_comwordPK pk);

    /**
     * 修改或保存常用语
     */
    @PostMapping("/std_comword/save")
    ResponseDTO save(@RequestBody Std_comword  std_comword);

    ///**
    // * 删除常用语 复合主键使用
    // */
    //@PostMapping("/std_comword/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Std_comword.Std_comwordPK pk);

    /**
     * 批量删除常用语
     */
    @PostMapping("/std_comword/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/std_comword/output")
    void output(HttpServletResponse response, @RequestBody Std_comwordPageInfo std_comwordPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/std_comword/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/std_comword/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

}
